package com.cwm.test.composite.demo.transparent;

import java.math.BigDecimal;

public abstract class CourseComponent {

    public boolean addChild(CourseComponent component){
        throw new UnsupportedOperationException("不支持添加操作!");
    }

    public boolean removeChild(CourseComponent component){
        throw new UnsupportedOperationException("不支持删除操作!");
    }

    public String getName(){
        throw new UnsupportedOperationException("不支持获取名称操作!");
    }

    public BigDecimal getPrice(){
        throw new UnsupportedOperationException("不支持获得价格操作!");
    }

    public void print(){
        throw new UnsupportedOperationException("不支持打印操作!");
    }

}
